// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
thread 'TIM'



WHILE TRUE
    WAIT 0
    IF PLAYER.Defined(0)
    THEN
        
    END 

    00BF: get_time_of_day 1@ 2@
    if and
       2@ == 59 
       1@ > 23
    then
        1@++
        2@ = 0
    end
    if and 
    1@ < 24
    2@ < 59
    then 2@++
       if and 
       1@  == 23 
       2@ == 59
       then
           1@ = 0
           2@ = 0
        end
        00C0: set_current_time_hours_to 1@ minutes_to 2@
        
    end
    01B5: force_weather 1 
    00C0: set_current_time_hours_to 1@ minutes_to 2@
end


//void Weather_Options_Loop(void){
//  if(time_cycle){ //if time is frozen this code shall not run
//      GET_TIME_OF_DAY(&hour,&minute);
//      if(minute == 59 && hour != 23){
//          hour++;  //set hour to increase
//          minute = 0; //set minute to 0
//      }
//      if(hour < 24 && minute < 59) minute++; //work when on final hour
//          if(hour == 23 && minute == 59){ //if at the end set to 0
//              hour = 0;
//              minute = 0;
//          }  
//      SET_TIME_OF_DAY(hour,minute);       
//  }
//  if(freeze_time){
//  FORCE_WEATHER_NOW(weather);
//  SET_TIME_OF_DAY(hour,minute);
//  }   
//}